Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Handled the case of passing a function that returns a date to the MaxDate decorator #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adelbke
Copy link

@adelbke adelbke commented Jul 29, 2024

I tried to use the library in an app that tried to validate a date field, ensuring the date is in the past (before Date.now()).

It failed because the library tried to run toJSON() on a function and now I am trying to push a fix for that use case.
It just replaces the description of the field with this description Before a date computed dynamically.

Did the same for the MinDate decorator as well.

@adelbke
Copy link
Author

adelbke commented Nov 23, 2024

Any Updates on this @epiphone ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant